// Config
import { tokenKey } from "@/config/cache-keys";

// Hooks
import { getCookie } from "./useCookie";

export function getToken() {
  return getCookie(tokenKey) || "";
}

export function setToken(token = "") {
  return setCookie(tokenKey, token);
}

export function removeToken() {
  return delCookie(tokenKey);
}
